package _租车系统;

public  class Car {
    String chepai;
    String pinpai;
    int zujin;
    int zuowei;
    int day;
    double feiyong;
    boolean state;

    public String getChepai() {
        return chepai;
    }

    public void setChepai(String chepai) {
        this.chepai = chepai;
    }

    public String getPinpai() {
        return pinpai;
    }

    public void setPinpai(String pinpai) {
        this.pinpai = pinpai;
    }

    public int getZujin() {
        return zujin;
    }

    public void setZujin(int zujin) {
        this.zujin = zujin;
    }

    public int getZuowei() {
        return zuowei;
    }

    public void setZuowei(int zuowei) {
        this.zuowei = zuowei;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public double getFeiyong() {
        return feiyong;
    }

    public void setFeiyong(double feiyong) {
        this.feiyong = feiyong;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public Car() {
    }

    public Car(String chepai, String pinpai, int zujin, int zuowei, int day, double feiyong, boolean state) {
        this.chepai = chepai;
        this.pinpai = pinpai;
        this.zujin = zujin;
        this.zuowei = zuowei;
        this.day = day;
        this.feiyong = feiyong;
        this.state = state;
    }

    public  double feiyong (){
        return day*zujin;
    };
    public void show(){
        System.out.println("品牌:"+pinpai+"\n车牌号:"+chepai+"\n租金:"+zujin+"\n座位:"+zuowei+"\n状态:"+state+"\n出租天数:"+day);
    }
}
